﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace Test_2D
{
    [Serializable]
    public class Frame
    {
        private List<Motion> motion_list = new List<Motion>();
        private bool isKey = false;  //此帧是否为关键帧

        private Tween tween = null;
        
        public List<Motion> Motions
        {
            get { return motion_list; }
            set { motion_list = value; }
        }

        public bool IsKey
        {
            get { return isKey; }
            set { isKey = value; }
        }

        public bool IsEmpty
        {
            get { return motion_list.Count == 0; }
        }

        /// <summary>
        /// 补间，只有当isKey为true时才有意义
        /// </summary>
        public Tween Tween
        {
            get { return tween; }
            set { tween = value; }
        }
    }
}
